package com.example.auth.Feign;

import com.example.auth.Common.CommonConstants;
import com.example.auth.Feign.factory.ProductFeignFallBackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * product服务的跨服务查询
 */
@FeignClient(name = CommonConstants.MODULE_PRODUCT, contextId = "product", fallbackFactory = ProductFeignFallBackImpl.class)
public interface ProductFeign {


    @GetMapping("/product/test")
    String getProduct();
}
